<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="UserAdmin.aspx.vb" Inherits="Admin_UserAdmin" title="User Administration" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="welcome" class="post">
<h2 class="title"><span>User Administration</span></h2>
<div class="story">
<div class="sectiontitle">User Administration</div>
    <p></p>
    <b>- Total Registered Members: <asp:Literal ID="lblTotalUsers" runat="server" /><br />
       - Members Online Now: <asp:Literal ID="lblOnlineNow" runat="server" /><br /></b>
    <p></p>
    Click one of the following link to display all members whose name begins with that letter:
    <p></p>
    <asp:Repeater runat="server" ID="rptAlphabet" OnItemCommand="rptAlphabet_ItemCommand">
        <ItemTemplate>
            <asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Container.DataItem %>'
            CommandArgument='<%# Container.DataItem %>' />&nbsp;&nbsp;
        </ItemTemplate>
    </asp:Repeater>
    <p></p>
    Or search members by email: <asp:TextBox ID="txtSearchBox" runat="server" />
    <asp:Button ID="btnSearch" runat="server" Text="Search" />
    <p></p>
        <asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="UserName" OnRowCreated="gvUsers_RowCreated">
            <Columns>
                <asp:BoundField DataField="UserName" HeaderText="UserName" />
                <asp:HyperLinkField DataTextField="Email" HeaderText="Email" DataNavigateUrlFields="Email" DataNavigateUrlFormatString="mailto:{0}" />
                <asp:BoundField DataField="CreationDate" HeaderText="Created" />
                <asp:BoundField DataField="LastActivityDate" HeaderText="Last Activity" />
                <asp:CheckBoxField DataField="IsApproved" HeaderText="IsApproved" />
                <asp:HyperLinkField Text="<img src='../images/edit.gif' border='0' />" 
                DataNavigateUrlFormatString="EditUser.aspx?UserName={0}" DataNavigateUrlFields="UserName" />
                <asp:ButtonField CommandName="Delete" ButtonType="Image" ImageUrl="~/Images/Delete.gif" />
            </Columns>
            <EmptyDataTemplate>No users found for the specified criteria.</EmptyDataTemplate>
        </asp:GridView>
</div>
</div>
</asp:Content>

